package com.tieto;

import javax.persistence.Persistence;

import org.junit.Before;

public class PersonTestDBCP extends PersonTest {
	@Before
	@Override
	public void setUp() {
		factory = Persistence.createEntityManagerFactory("DBCP");
		entityManager = factory.createEntityManager();
		// // clear table
		// final List<Person> list =
		// entityManager.createQuery("select p from Person p")
		// .getResultList();
		// entityManager.getTransaction().begin();
		// for (Person current : list) {
		// entityManager.remove(current);
		// }
		// entityManager.getTransaction().commit();
	}
}
